package com.iyjhsoc.game.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iyjhsoc.game.domain.VO.CompetitionVO;
import com.iyjhsoc.game.domain.entity.CompetitionDO;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CompetitionDAO extends BaseMapper<CompetitionDO> {

    List<CompetitionVO> queryList(CompetitionVO competitionVO);

    List<CompetitionDO> queryListBetweenIds(@Param("startId") String startId,@Param("endId") String endId);

    /**
     * 查询未开始的比赛
     * @param competitionVO
     * @return
     */
    List<CompetitionDO> queryNotStart(CompetitionVO competitionVO);

}
